.main-content {
    height: 100vh;
    overflow-y: auto;
    padding: 15px;
}

.main-container {
    max-height: calc(100vh - 30px);
    overflow-y: auto;
    padding-right: 10px;
}

.config-header {
    margin-bottom: 10px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(76, 175, 80, 0.1);
}

.config-header h1 {
    font-size: 1.8em;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.config-header h1 i {
    color: #4CAF50;
    font-size: 0.9em;
}

.config-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.config-description i {
    color: #4CAF50;
    font-size: 1.2em;
}

.config-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    margin-top: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.config-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.config-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.config-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #4CAF50, #45a049);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.config-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.config-item:hover::before {
    opacity: 1;
}

.gesture-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.gesture-number {
    font-size: 1.2em;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.gesture-number i {
    color: #4CAF50;
    font-size: 1.1em;
}

.gesture-image {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.config-item:hover .gesture-image {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.gesture-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.gesture-config {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95em;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-group label i {
    color: #4CAF50;
    font-size: 0.9em;
}

.gesture-input {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.95em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gesture-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(76, 175, 80, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gesture-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.save-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
    width: fit-content;
}

.save-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.save-btn:hover::before {
    left: 100%;
}

.save-btn i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.save-btn:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.save-btn:hover i {
    transform: scale(1.1);
}

.save-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.save-btn.loading {
    background: #45a049;
    cursor: not-allowed;
}

.save-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.save-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.save-success.show {
    transform: translateX(0);
}

@media (max-width: 768px) {
    .config-item {
        grid-template-columns: 1fr;
    }
    
    .gesture-image {
        width: 100px;
        height: 100px;
    }
    
    .gesture-input {
        padding: 8px 10px;
        font-size: 0.9em;
    }
    
    .save-btn {
        padding: 6px 12px;
        font-size: 0.85em;
    }
    
    .config-header h1 {
        font-size: 1.5em;
    }
    
    .config-description {
        font-size: 0.9em;
    }
}

/* 自定义滚动条样式 */
.main-container::-webkit-scrollbar {
    width: 6px;
}

.main-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.main-container::-webkit-scrollbar-thumb {
    background: rgba(76, 175, 80, 0.3);
    border-radius: 3px;
}

.main-container::-webkit-scrollbar-thumb:hover {
    background: rgba(76, 175, 80, 0.4);
} 